home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / fgl105c.zip / CC-01.C < prev    next >
Text File  |  1991-05-07  |  406b  |  26 lines

  1. #define ESC 27
  2.  
  3. int status1, status2;
  4.  
  5. main()
  6. {
  7.    unsigned char key, aux;
  8.  
  9.    int1C(1);
  10.  
  11.    status1 = 0;
  12.    status2 = 0;
  13.    fg_getkey(&key,&aux);
  14.  
  15.    while (key != ESC) {
  16.       printf("\n");
  17.       printf("Joystick 1 status: %d\n",status1);
  18.       printf("Joystick 2 status: %d\n",status2);
  19.       status1 = 0;
  20.       status2 = 0;
  21.       fg_getkey(&key,&aux);
  22.       }
  23.  
  24.    int1C(0);
  25. }
  26.